package com.me.mygdxgame;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class Pumpkit implements java.io.Serializable {

	private final String IMG = "IconsLandVistaHalloweenEmoticonsDemo-PNG-256x256-Adore.png-256x256.png";
	private Texture texture;
	private float posX;
	public float getPosX() {
		return posX;
	}

	public void setPosX(float posX) {
		this.posX = posX;
	}

	private float posY;
	
	public float getPosY() {
		return posY;
	}

	public void setPosY(float posY) {
		this.posY = posY;
	}

	public Pumpkit(float posX, float posY) {
		this.posX = posX;
		this.posY = posY;
		this.texture = new Texture(Gdx.files.internal(this.IMG));
	}
	
	public void dispose() {
		this.texture.dispose();
	}

	public void draw(SpriteBatch sb) {
		sb.draw(this.texture, this.posX , Gdx.graphics.getHeight() - this.texture.getHeight() - this.posY); 
	}
}
